#include "a.h"
#include "qdebug.h"
#include "qthread.h"

a::a()
{
 b *b1=new b();
qt=new QThread();

 b1->moveToThread(qt);
 qt->start();
 connect(this,SIGNAL(startSignal()),b1,SLOT(bdowork()));
amain();
}

void a::returnb()
{
    qDebug()<<"数据返回";
}
void a::amain()
{

    emit startSignal();

}
